﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Entity;

namespace MysqlTest
{
    class OrdersContext:DbContext
    {
        public DbSet<Order> orders { get; set; }
        public DbSet<OrderDetail> items { get; set; }

        public OrdersContext() : base("ordersbase")
        {
            Database.SetInitializer(
            new DropCreateDatabaseIfModelChanges<OrdersContext>());
        }
    }
}
